import { ArticlesResponse } from "@/types/data";
import request from "@/utils/request";

// 获取文章列表数据
type Params = {
  channel_id: number,
  timestamp: number
}
export function getAriticleApi(params: Params): Promise<ArticlesResponse> {
  return request.get('/articles', { params })
}